package com.paas.kafka;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class TestDemo {
	public static void main(String[] args) {
		Random random = new Random();

		Set<Integer> roadm = new HashSet<>();
		while (true){
			int value =  Math.abs(random.nextInt());
			if (roadm.contains(value)){
				System.out.println("random appeare same value");
			}else {
				roadm.add(value);
			}

		}
	}
}
